﻿using System;
using System.Collections.Generic;

using System.Text;

namespace System.Qizx.Xml
{
    /*******************************/
    /// <summary>
    /// Manages the target where the result of the tranformation will be saved.
    /// </summary>
    public class DomResult : BasicResult
    {
        private string id;
        private System.Xml.XmlNode node;

        /// <summary>
        ///  Gets and sets the Id of the GenericResultSupport instance.
        /// </summary>
        public virtual string Id
        {
            get
            {
                return this.id;
            }
            set
            {
                this.id = value;
            }
        }

        /// <summary>
        /// Gets and sets the Document for the GenericResultSupport instance.
        /// </summary>
        public virtual System.Xml.XmlNode Node
        {
            get
            {
                return this.node;
            }
            set
            {
                this.node = value;
            }
        }

        /// <summary>
        /// Creates a new instance of DomSourceSupport with the specified XmlDocument instance and the 
        /// specified Id.
        /// </summary>
        /// <param name="Document">The XmlDocument instance for the class.</param>
        /// <param name="Id">The Id for the DomSourceSupport.</param>
        public DomResult(System.Xml.XmlNode Node, string Id)
        {
            this.id = Id;
            this.node = Node;
        }

        /// <summary>
        /// Creates a new instance of DomSourceSupport with the specified XmlDocument instance.
        /// </summary>
        /// <param name="Document">The XmlDocument instance for the class.</param>
        public DomResult(System.Xml.XmlNode Node)
        {
            this.id = "";
            this.node = Node;
        }
    }
}
